package com.woniuxy.woniufp.system.mapper;

import com.woniuxy.woniufp.system.entity.UserDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface UserDetailMapper extends Mapper<UserDetail> {
    @Update("update u_user_detail set card_bind_status = #{status} where req_code = #{reqCode}")
    void updateUserDetailOfStatusByReqCode(@Param("reqCode") String reqCode, @Param("status") int status);

    @Select("select * from u_user_detail where req_code = #{value}")
    UserDetail selectUserDetailByReqCode(String reqCode);
}